package fr.afcepf.atod18.dao;

import java.util.HashMap;
import java.util.Map;

import fr.afcepf.atod18.entity.Customer;

public class CustomerDAO extends GenericDAO<Customer> {

 public CustomerDAO() {
  super(Customer.class);
 }

 public Customer findUserByName(String name){
  Map<String, Object> parameters = new HashMap<String, Object>();
  parameters.put("name", name);  

  return super.findOneResult(Customer.FIND_BY_NAME, parameters);
 }
}